#include <stdio.h>
#include <time.h>

#define pp(word) #word()

void printa()
{
    printf("xxxxxxxxxxxxxxxxxxxxxxxxxxxx\n");
}
//void a()
//{
    //printf("xxxxxxxxxxxxxxxxxxxxxxxxxxxx\n");
//}
//

class entity {
public:

    virtual void updateCast() = 0;
    virtual void print() { printf("xxxxxxxxxxxxxxxxxxxxxxx\n");}
};

class player : public entity {
public:
    virtual void updateCast() { printf("son\n"); }
    virtual void print() { printf("bbbbbbbbbbbbbbbbbbbbbbb\n");}
};


int main(int argc, const char **argv) {
    struct tm t;
    t.tm_year = 2011 - 1900;
    t.tm_mon = 4;
    t.tm_mday = 1;
    t.tm_hour = 23;
    t.tm_min = 59;
    t.tm_sec = 59;

    time_t start = mktime(&t);
    printf("%d\n", start);
    //pp("a");

    player p;
    entity *e = &p;
    e->print();
    e->updateCast();

    return 0;
}
